package com.lemner.ke.model.loginreg;

/**
 * 登录
 *
 * @author 杨烨
 * @date 2018/9/12
 */

import com.lemner.ke.base.BaseListener;
import com.lemner.ke.base.BaseModel;
import com.lemner.ke.base.BaseObjectBean;
import com.lemner.ke.bean.LoginBean;

public class LoginModel extends BaseModel<BaseObjectBean<LoginBean>> {

    public void login(String mobile, String pswd, final BaseListener listener) {
        call = service.login(mobile, pswd);
        callEnqueue(call, listener);
    }

    public void loginMobile(String mobile, String identifyingCode, final BaseListener listener) {
        call = service.loginMobile(mobile, identifyingCode);
        callEnqueue(call, listener);
    }
}